package com.atguigu.spring5;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

public class Book {

    private   String bname;
    private   String bauthor;

    public void setBname(String bname) {
        this.bname = bname;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

//    public static void main(String[] args) {
//        Book book = new Book();
//        book.setBname("kehuan");
//    }
    public  void testDemon(){
        System.out.println(bname + ":" + bauthor);
    }
}
